<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>模板标签</title>
	<style type="text/css">
	
	ul {
		list-style: none;
		margin: 10px 0;
		border: 1px dotted #aaa;
	}

	li{
		widows: 300px;
		padding: 5px 0;
	}

    </style>
</head>
<body>
	<div class="container">
		<h1>模板标签</h1>
		<div id="box">
			
		</div>
	</div>
<script src="https://cdn.staticfile.org/jquery/3.2.0/jquery.js"></script>
<script type="text/javascript">


var str = new String('hello');
console.log(str)

console.log(str.length, str)
str.length = 2;
console.log(str.length, str)

console.log('-----------------------\n')

let name = " \n\n	houdunren  		";
console.log(name);
console.log(name.trim());
console.log(name.trimLeft());
console.log(name.trimRight()); 



</script>
</body>
</html>